// 三测单图表
<template>
  <van-nav-bar
    :title="title"
    left-text="返回"
    left-arrow
    @click-left="onClickLeft"
  ></van-nav-bar>
  <van-row justify="center">
    <van-col
      span="22"
      style="
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
      "
    >
      <Tchart ref="tChart" class="tchart"></Tchart>
    </van-col>
  </van-row>
</template>

<script setup>
import { useRoute, useRouter } from "vue-router";
// import TempChart from "@/views/TempChart.vue";
import Tchart from "@/views/Tchart.vue";
import { reactive, ref, onMounted } from "vue";

const router = useRouter();
const selectitem = JSON.parse(localStorage.getItem("selectitem"));
const title = selectitem.name + selectitem.age + "岁";
function onClickLeft() {
  console.log("onClickLeft");
  // this.$router.go(-1)
  router.go(-1);
}

onMounted(() => {
  console.log(`the component is now mounted.`);
});

</script>

<style>
</style>
